using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Entity;

namespace BUL
{
	public class NewsBUL
	{
		private static NewsDAL db = new NewsDAL();
		#region[News_GetById]
		public static List<Entity.News> News_GetById(string Id)
		{
			return db.News_GetById(Id);
		}
		#endregion
        #region[News_GetByHome]
        public static List<Entity.News> News_GetByHome(string GroupNewsId, string lang)
        {
            return db.News_GetByHome(GroupNewsId, lang);
        }
        #endregion
		#region[News_GetByTop]
		public static List<Entity.News> News_GetByTop(string Top, string Where, string Order)
		{
			return db.News_GetByTop(Top, Where, Order);
		}
		#endregion
        #region[News_GetByKMHangKhong]
        public static List<Entity.News> News_GetByKMHangKhong(string lang)
        {
            return db.News_GetByKMHangKhong(lang);
        }
        #endregion
        #region[News_GetByNewsRelated]
        public static List<Entity.News> News_GetByNewsRelated(string newId, string grnId, string Lang) 
        {
            return db.News_GetByNewsRelated(newId, grnId, Lang);
        }
        #endregion
        #region[News_GetByNewsOther]
        public static List<Entity.News> News_GetByNewsOther(string newId, string date, string grnId, string Lang)
        {
            return db.News_GetByNewsOther(newId,date, grnId, Lang);
        }
        #endregion
        #region[News_GetByGroupNewsID_Date_Top]
        public static List<Entity.News> News_GetByGroupNewsID_Date_Top(string grnid, string date, string top)
        {
            return db.News_GetByGroupNewsID_Date_Top(grnid, date, top);
        }
        #endregion
		#region[News_GetByAll]
		public static List<Entity.News> News_GetByAll(string Lang)
		{
			return db.News_GetByAll(Lang);
		}
		#endregion
        #region[News_GetBySpa]
        public static List<Entity.News> News_GetBySpa(string Lang)
        {
            List<News> list = new List<News>();
            list = db.News_GetByAll(Lang);
            return list.FindAll(obj => obj.Check2 == "1");
        }
        #endregion
        #region[News_GetByDulich]
        public static List<Entity.News> News_GetByDulich(string Lang)
        {
            return db.News_GetByDulich(Lang);
        }
        #endregion
        #region[News_GetByDulich3]
        public static List<Entity.News> News_GetByDulich3(string Lang)
        {
            return db.News_GetByDulich3(Lang);
        }
        #endregion
		#region[News_Paging]
        public static List<Entity.News> News_Paging(string CurentPage, string PageSize, string Lang, string Level)
        {
            return db.News_Paging(CurentPage, PageSize, Lang, Level);
        }
		#endregion
		#region[News_Insert]
		public static bool News_Insert(News data)
		{
			return db.News_Insert(data);
		}
		#endregion
		#region[News_Update]
		public static bool News_Update(News data)
		{
			return db.News_Update(data);
		}
		#endregion
		#region[News_Delete]
		public static bool News_Delete(string Id)
		{
			return db.News_Delete(Id);
		}
		#endregion
	}
}